{% extends 'KeioStudyBundle::layout.html.twig' %}

{% block content %}

<h2>Modify blog</h2>


<form action="{{ path('blog_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
	<table width="100%">
		<tr>
			<td style="width:50%">
				<label>Title</label>
		    	{{ form_widget(edit_form.title) }}
			</td>
			<td style="width:50%">
				<label>Category</label>
		    	{{ form_widget(edit_form.category) }}
			</td>
		</tr>
	</table>
		<label>Content</label>
    	<textarea class="ckeditor" id="keio_studybundle_blogtype_blog" name="keio_studybundle_blogtype[blog]" required="required" maxlength="50000">
	    	{{ noidungblog }}
    	</textarea>

        {{ form_widget(edit_form._token) }}
        <p style="padding-top:10px">
            <button type="submit">Update</button>
        </p>
    </form>

</ul>
{% endblock %}
